﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using MMITCore;
using MMITWeb.Infrastructure.CustomValidators;

namespace MMITWeb.Models
{
    public class SendMoneyViewModel
    {
        [Display(Name="MMIT PIN Serial")]
        public string SerialNo{ get; set; }

        [Display(Name = "MMIT PIN")]
        public string PIN { get; set; }

        [Required]   
        [DecimalValidator(ErrorMessage="Amount must be within a valid range")]
        public decimal Amount { get; set; }
        
        [Display(Name="UKash PIN")]
        public string UkashPIN { get; set; }

        public IEnumerable<Telerik.Web.Mvc.UI.DropDownItem> Accounts {get; set;}

        [Required]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }

        [Required]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [Required(ErrorMessage = "Please enter a valid country code")]
        [Display(Name = "Enter country dialling code")]
        [StringLength(5)]
        public string CountryCode
        {
            get;
            set;
        }

        [Required]
        [Display(Name = "Recipient's Mobile Number")]
        [DataType(DataType.PhoneNumber)]
        public string RecipientMSISDN { get; set; }
        
        [Required]
        [Display(Name="Identification Number")]
        public string IdentificationNumber { get; set; }

        public int IdentificationTypeId {get; set; }
        public int CountryId {get; set; }
        public int AccountId { get; set; }
        public int PartnerId { get; set; }

        public IEnumerable<Telerik.Web.Mvc.UI.DropDownItem> IdentificationTypes { get; set; }

        public IEnumerable<Telerik.Web.Mvc.UI.DropDownItem> Countries { get; set; }

        public IEnumerable<Telerik.Web.Mvc.UI.DropDownItem> Beneficiaries { get; set; }

        public IEnumerable<Telerik.Web.Mvc.UI.DropDownItem> Partners { get; set; }

        [Display(Name = "Save this recipient information?")]
        public bool saveBeneficiary
        {
            get;
            set;
        }
    }
}